<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签必须放在最前面，任何其他内容都必须跟随其后！ -->
    <title>Ymall</title>
    <!-- Bootstrap样式 -->
    <link rel="stylesheet" href="bootstrap-3.3.7-dist/css/bootstrap.min.css">
    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="jquery/jquery-3.4.1.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>

    <script src="js/Ymall.js"></script>
    <link rel="stylesheet" href="css/Ymall.css">
    <style>
        .thumbnail>img{
            height: 160px !important;
        }
        h4{
            font-size: 30px;
            color: wheat;
        }
        .carousel-container > p{
            font-size: 20px;
            color: white;
        }
    </style>
</head>
<body>

<!-- navbar导航栏 -->
<nav class="navbar navbar-default">
    <div class="container-fluid" id="navbar">
        <div class="row clearfix">
            <div class="col-md-1 column">
            </div>
            <div class="col-md-10 column">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                            data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#"><img class="img-logo" src="img/logol.png" alt=""></a>
                </div>

                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="nav navbar-nav">
                        <li><a href="Ymall.html"><span class="span-font">首页</span><span class="sr-only">(current)</span></a>
                        </li>
                        <li><a href="Mall.html"><span class="span-font">购物商城</span> </a></li>
                        <li><a href="#"><span class="span-font">求购商城</span> </a></li>
                        <li><a href="cart.html"><span class="span-font">购物车</span> </a></li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                               aria-haspopup="true" aria-expanded="false"><span class="span-font">反馈与意见</span> <span
                                    class="caret"></span></a>
                            <ul class="dropdown-menu">
                                <li><a href="#"><span class="span1-font">反馈</span></a></li>
                                <li role="separator"  class="divider"></li>
                                <li><a href="#"><span class="span1-font">意见</span></a></li>
                            </ul>
                        </li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                               aria-haspopup="true" aria-expanded="false"><span class="span-font">联系我们</span> <span
                                    class="caret"></span></a>
                            <ul class="dropdown-menu">
                                <li><a href="#"><span class="span1-font">电话联系</span></a></li>
                                <li role="separator"  class="divider"></li>
                                <li><a href="#"><span class="span1-font">邮箱联系</span></a></li>
                            </ul>
                        </li>
                    </ul>
                    <ul class="nav navbar-nav navbar-right">
                        <li id="login"><a href="Login.html"><span class="span-font">登录</span></a></li>
                        <li id="register"><a href="Register.html"><span class="span-font">注册</span></a></li>
                    </ul>
                    <form class="navbar-form navbar-right">
                        <div class="form-group">
                            <input type="text" class="form-control" placeholder="Search">
                        </div>
                        <!-- <button type="submit" class="btn btn-default"><img class="img-search" src="img/" alt=""></button> -->
                        <button type="submit" class="btn btn-default"><img class="img-search" src="img/search_icon.png"
                                                                           alt=""></button>
                    </form>
                </div>
            </div>
            <div class="col-md-1 column">
            </div>
        </div>
    </div>
</nav>

<!--carousel轮播图-->
<div class="container-fluid">
    <div class="row clearfix">
        <div class="col-md-1 column">
        </div>
        <div class="col-md-10 column" id="carousel">
            <div class="carousel slide" id="carousel-647663">
                <!--                    控制轮播效果-->
                <ol class="carousel-indicators">
                    <li class="active" data-slide-to="0" data-target="#carousel-647663">
                    </li>
                    <li data-slide-to="1" data-target="#carousel-647663">
                    </li>
                    <li data-slide-to="2" data-target="#carousel-647663">
                    </li>
                </ol>
                <!--                    轮播的内容-->
                <div class="carousel-inner">
                    <div class="item active myitem">
                        <!--                            图片-->
                        <img class="img-carousel" alt="" src="https://yanxuan.nosdn.127.net/21fbccd30c21ec73e146526a3636916f.png"/>
                        <!-- 内容-->
                        <div class="carousel-container">
                            <h4>
                                《计算机操作系统原理》
                            </h4>
                            <br>
                            <p>
                                操作系统（Operating System，简称OS），是电子计算机系统中负责支撑应用程序运行环境以及用户操作环境的系统软件，
                                同时也是计算机系统的核心与基石。它的职责常包括对硬件的直接监管、对各种计算资源（如内存、处理器时间等）的管理、
                                以及提供诸如作业管理之类的面向应用程序的服务等等。
                            </p>
                        </div>
                    </div>
                    <div class="item myitem">
                        <img class="img-carousel" alt="" src="https://yanxuan.nosdn.127.net/67a017d04550b9e4e52cb68867779234.png"/>
                        <div class="carousel-container">
                            <h4>
                                《数据结构》
                            </h4>
                            <br>
                            <p>
                                数据结构是计算机存储、组织数据的方式。数据结构是指相互之间存在一种或多种特定关系的数据元素的集合。
                                通常情况下，精心选择的数据结构可以带来更高的运行或者存储效率。
                                数据结构往往同高效的检索算法和索引技术有关。
                            </p>
                        </div>
                    </div>
                    <div class="item myitem">
                        <img class="img-carousel" alt="" src="
https://yanxuan.nosdn.127.net/833424c94daac4e374d40ab96ca32c80.png"/>
                        <div class="carousel-container">
                            <h4>
                                《国家教师资格考试》
                            </h4>
                            <br>
                            <p>
                                2019新版小学教师资格考试4本套
                            </p>
                        </div>
                    </div>
                </div>
                <!--                    控制左右滑动-->
                <a class="left carousel-control" href="#carousel-647663" data-slide="prev">
                    <span class="glyphicon glyphicon-chevron-left"></span>
                </a>
                <a class="right carousel-control" href="#carousel-647663" data-slide="next">
                    <span class="glyphicon glyphicon-chevron-right"></span>
                </a>
            </div>
        </div>
        <div class="col-md-1 column">
        </div>
    </div>
</div>

<!--goods商品-->
<div class="container-fluid">

    <div class="row clearfix">
        <div class="col-md-1 column">
        </div>
        <div class="col-md-10 column">
            <div class="goods-frame">
                <h1 class="h1-goods">精选商品</h1>
                <div class="row">
                    <div class="col-md-4">
                        <div class="thumbnail">
                            <img  height="160px" class="home-goods" class="img-thumbnail" alt="300x200" src="
https://yanxuan.nosdn.127.net/31ac1b51c594b23819123616a5922d04.png"/>
                            <div class="caption">
                                <h3>
                                    高等数学
                                </h3>
                                <p>
                                    作者:同济大学应用数学系,高等教育出版社出版
                                </p>
                                <p>
                                    <a class="btn btn-primary" href="#">点击购买</a>
                                </p>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="thumbnail">
                            <img  height="160px" class="home-goods" alt="300x200" src="
https://yanxuan.nosdn.127.net/3200a88dd086911014f75568c845c576.png"/>
                            <div class="caption">
                                <h3>
                                    离散数学
                                </h3>
                                <p>
                                    作者:陈志奎,人民邮电出版社出版,业界权威书籍
                                </p>
                                <p>
                                    <a class="btn btn-primary" href="#">点击购买</a>
                                </p>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="thumbnail">
                            <img  height="160px" class="home-goods" alt="300x200" src="https://yanxuan.nosdn.127.net/b89656eb08beb9f48a8592eeead40b6b.png"/>
                            <div class="caption">
                                <h3>
                                    基础会计
                                </h3>
                                <p>
                                    全书共八章系统的介绍了基础会计的知识.看完就可以考会计证了
                                </p>
                                <p>
                                    <a class="btn btn-primary" href="#">点击购买</a>
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-1 column">
        </div>
    </div>

</div>

<!--introduce团队介绍-->
<div class="container-fluid">
    <div class="row clearfix">
        <div class="col-md-1 column">
        </div>
        <div class="col-md-10 column">
            <div id="introduce-frame">
                <div class="row clearfix">
                    <div class="col-md-4 column">
                        <blockquote class="blockquote">
                            <p>
                                <strong>关于我们</strong>
                            </p>
                            <small>Someone famous Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer
                                posuere erat a ante.<cite>Source Title</cite></small>
                        </blockquote>
                    </div>
                    <div class="col-md-4 column">
                        <blockquote>
                            <p>
                                <strong>团队信息</strong>
                            </p>
                            <small>Someone famous Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer
                                posuere erat a ante.<cite>Source Title</cite></small>
                        </blockquote>
                    </div>
                    <div class="col-md-4 column">
                        <blockquote>
                            <p>
                                <strong>版权声明</strong>
                            </p>
                            <small>Someone famous Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer
                                posuere erat a ante.<cite>Source Title</cite></small>
                        </blockquote>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-1 column">

        </div>
    </div>
</div>

<!--copyright版权说明-->
<div class="container-fluid">
    <div class="row clearfix">
        <div class="col-md-1 column">
        </div>
        <div class="col-md-10 column">
            <div id="copyRight-frame">
                <strong>Copyright © 2017-2200.Company name All rights reserved.</strong>
            </div>
        </div>
        <div class="col-md-1 column">
        </div>
    </div>
</div>

<script>
    // <!--    //自动播放-->
    // <!--    $("#carousel").carousel({-->
    // <!--        interval:1000-->
    // <!--    });-->
    // $(function(){
    //     $('#carousel').carousel({
    //         interval:1000
    //     });
    // });
    $.get("http://localhost:8080/ycumall/UserServlet?method=getInfo", function (data) {
        if (data.data != null) {
            $("#login").html('<a href="#" style="color: black;font-size: 16px;">' + data.data + '</a>');
            $("#register").html('<a href="http://localhost:8080/ycumall/UserServlet?method=outLogin" style="color: black;font-size: 16px;">登出</a>');
            console.log(data.data);
        }
    });
</script>

</body>
</html>